package com.ytc.service;

import com.ytc.model.Comment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-provider")
public interface CommentService {

    //张阔：新增书评
    @RequestMapping("addComment")
    void addComment(@RequestBody Comment comment);

    //张阔：查询书评
    @RequestMapping("queryCommentByBidAndUid")
    Comment queryCommentByBidAndUid(@RequestParam("bid") Integer bid,@RequestParam("uid") Integer uid);
}
